<%--
  Created by IntelliJ IDEA.
  User: mjones
  Date: Apr 12, 2010
  Time: 10:25:03 PM
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" %>
<html>
  <head>        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'activity.label', default: 'Pending Activities')}" />
        <title><g:message code="default.list.label" args="[entityName]" /></title></head>
  <body>Place your content here

          <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
            <%--<span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>--%>
        </div>
        <div class="body">
            <h1><g:message code="default.list.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                <table>
                    <thead>
                        <tr>

                            <%--<g:sortableColumn property="id" title="${message(code: 'activity.id.label', default: 'Id')}" />--%>

                            <g:sortableColumn property="title" title="${message(code: 'activity.title.label', default: 'Activity')}" />

                            <g:sortableColumn property="description" title="${message(code: 'activity.description.label', default: 'Status')}" />

                            <g:sortableColumn property="activityType" title="${message(code: 'activity.activityType.label', default: 'Admin Comment')}" />

                            <%--<g:sortableColumn property="verificationType" title="${message(code: 'activity.verificationType.label', default: 'Verification Type')}" />--%>

                           <%-- <g:sortableColumn property="eventDate" title="${message(code: 'activity.eventDate.label', default: 'Event Date')}" />--%>

                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${activityPeInstanceList}" status="i" var="activityPeInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

                            <%--<td><g:link action="show" id="${activityInstance.id}">${fieldValue(bean: activityInstance, field: "id")}</g:link></td>--%>

                            <%--<td><g:link action="show" id="${activityAwInstance.id}">${fieldValue(bean: activityInstance, field: "title")}</g:link></td>--%>

                            <td>Read in the dark.</td>

                            <td>${fieldValue(bean: activityPeInstance, field: "validateStatus")}</td>

                            <td>${fieldValue(bean: activityPeInstance, field: "validateComment")}</td>

                            <%--<td><g:formatDate date="${activityAwInstance.eventDate}" /></td>--%>

                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${activityPeInstanceTotal}" />
            </div>
        </div>

  </body>
</html>